import { Module } from '@nestjs/common'
import { RoleService } from './role.service'
import { RoleController } from './role.controller'
import { TypeOrmModule } from '@nestjs/typeorm'
import { Role } from 'src/entity/Role'
import { UserInfoModule } from 'src/user-info/user-info.module'
import { UserInfo } from 'src/entity/Userinfo'
import { User } from 'src/entity/User'
import { Menu } from 'src/entity/Menu'
// import { UserInfoService } from 'src/user-info/user-info.service';

@Module({
  imports: [
    UserInfoModule,
    TypeOrmModule.forFeature([Role, UserInfo, User, Menu]),
  ],
  controllers: [RoleController],
  providers: [RoleService],
  exports: [RoleService],
})
export class RoleModule { }
